<template>
    <div class="information-block text-danger"
        v-if="!$me.validity.isValid"
        :id="`validation_${$me.id}_block`">
        <h6 v-if="$me.validity.errorMessage">
            {{ $t("WebInterviewUI.AnswerWasNotSaved") }}
        </h6>
        <template v-for="message in $me.validity.messages">
            <p v-dateTimeFormatting
                v-html="message"
                :key="message"></p>
        </template>
    </div>
</template>
<script lang="js">
import { entityPartial } from '~/webinterview/components/mixins'

export default {
    mixins: [entityPartial],
    name: 'wb-validation',
}
</script>

